﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TD.TheGame
{
    class Hook
    {
        private double hookA;

        public Hook()
        {

        }

        public void calculteHookA(double bottomSide, double rightSide)
        {
            //calculte the longest side of the triangle 
            double longestSide = Math.Sqrt((bottomSide * bottomSide) + (rightSide * rightSide));

            //tangent value
            double tangentValue = rightSide / bottomSide;
            hookA = Math.Atan(tangentValue) * 180 / Math.PI;
        }

        public double HookA
        {
            get { return hookA; }
        }
    }
}
